﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SWENAssignment.Sophia
{
    public partial class RANBMainPage1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            
        }

        protected void lbtnroomNum_Click(object sender, EventArgs e)
        {
            string[] arg = new string[2];
            arg = ((LinkButton)sender).CommandArgument.ToString().Split('/');
            string roomNum = arg[0];
            string reservationID = arg[1];

            string querystring = "roomNum=" + roomNum + "&roomReservation=" + reservationID;
            
            
            Server.Transfer("~/Sophia/retrieveRoomReservation.aspx?" + querystring);
        }

        protected void addroomreservation_Click(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            // show customers details
            Response.Redirect("~/Sophia/showCustomersDetails.aspx");
            
         
        }

        protected void btnHomepage_Click(object sender, EventArgs e)
        {
           Response.Redirect("Homepage.aspx?");

        }
        // go to retrieve room reservation

    }
}